<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>interview test code</title>
	<style>
		.box {
			position: fixed;
			width: 400px;
			height: 400px;
			bottom: 50%;
			right: 50%;
			transform: translate(50%, 50%);
			background: red;
		}
		/* .box {
            position: absolute;
            width: 400px;
            height: 400px;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
            background: red;
		}*/

		@media screen and (max-width: 400px) {
			width: 100%;
		}

	</style>
</head>
<body>
	<div class="box"></div>
</body>
</html>
